
package com.jf.cloud.api.supplier.feign;

import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zz
 * @date 2022/7/13 15:34
 */

@FeignClient(value = "jfcloud-supplier", contextId = "supplierUser")
public interface SupplierUserFeignClient {
    /**
     * 根据手机号码查询账户数量
     *
     * @param mobile 手机号码
     * @return 账户数量
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/insider/supplier/countAccoutByMobile")
    ServerResponseEntity<Integer> countAccoutByMobile(@RequestParam("mobile") String mobile);

}
